﻿//using Microsoft.Extensions.DependencyInjection;
//using System;
//using System.Collections.Generic;
//using System.Reflection;
//using System.Text;
//using Volo.Abp.DependencyInjection;

//namespace Xms.Abp.DependencyInjection;

//public class XmsConventionalRegistrar: DefaultConventionalRegistrar
//{
//    protected override ServiceLifetime? GetServiceLifetimeFromClassHierarchy(Type type)
//    {
//        if (typeof(IMultiTenancyDependency).GetTypeInfo().IsAssignableFrom(type))
//        {
//            return (ServiceLifetime)3;
//        }
//        return base.GetServiceLifetimeFromClassHierarchy(type);
//    }

//    protected override ServiceDescriptor CreateServiceDescriptor(Type implementationType, Type exposingServiceType, List<Type> allExposingServiceTypes, ServiceLifetime lifeTime)
//    {
//        if (lifeTime == (ServiceLifetime)3)
//        {
//            //ServiceDescriptor.Describe()
//        }
//        return base.CreateServiceDescriptor(implementationType, exposingServiceType, allExposingServiceTypes, lifeTime);
//    }

//    //public static ServiceDescriptor CreateMultiTenancyLifetimeServiceDescriptor(Type implementationType, Type exposingServiceType)
//    //{

//    //}
//}
